package com.example.myapp.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.myapp.bean.UserBean;
import com.example.myapp.R;
import java.security.PublicKey;


public class MyAdapter2 extends BaseQuickAdapter<UserBean, BaseViewHolder> {

    public MyAdapter2(){
        super(R.layout.item_user_info);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, UserBean bean) {
        baseViewHolder.setText(R.id.tv_user_name,bean.getUsername());
        baseViewHolder.setImageResource(R.id.tv_user_head,bean.getHeadID());
    }
}
